﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OrderManage.aspx.cs" Inherits="Admin_ProductCenter_OrderManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Repeater runat="server" ID="rptOrder" 
            OnItemCommand="rptProduct_ItemCommand">
            <HeaderTemplate>
                <table>
                    <tr>
                        <td>
                            客户姓名
                        </td>
                        <td>
                            电话
                        </td>
                        <td>
                            电子邮箱
                        </td>
                        <td>
                            地址
                        </td>
                        <td>
                            邮编
                        </td>
                        <td>
                            提交时间
                        </td>
                        <td>
                            操作
                        </td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Eval("CustmerName") %>
                    </td>
                    <td>
                        <%# Eval("Phone")%>
                    </td>
                    <td>
                        <%# Eval("E-mail") %>
                    </td>
                    <td>
                        <%# Eval("Address") %>
                    </td>
                    <td>
                        <%# Eval("PostCode") %>
                    </td>
                    <td>
                        <%# Eval("CreateTime") %>
                    </td>
                    <td>
                        <input type="button" id="btnEdit" value="查看" onclick='return goView(<%# Eval("ID") %>);' />
                        <asp:Button runat="server" ID="btnDel" Text="删除" CommandName="del" CommandArgument='<%# Eval("ID") %>'
                            OnClientClick="return confirm('确认要删除吗?');" />
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>

<script type="text/javascript">
    function goView(id) {
        location.href = "OrderDetail.aspx?ID=" + id;
    }
</script>

